<template>
  <el-popconfirm    
   v-bind="$attrs"
   class="confirm-btn"
  >
  <template #reference>
    <el-button v-bind="$attrs" 
    @click.stop>
    <slot name="icon"></slot>
    {{ labelName }}</el-button>
  </template>  
  </el-popconfirm>
</template>

<script setup>
import { defineProps } from 'vue'

defineProps({
  labelName: {
      type: String,
      default () {
          return ''
      }
  }
})
</script>
<style lang="scss" scoped>
.confirm-btn {
  padding: 0 0 0 6px;
}
</style>